package com.ruoyi.system.service.impl;

import java.util.List;
import java.util.Map;

import com.ruoyi.common.annotation.DataSource;
import com.ruoyi.common.enums.DataSourceType;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.SysCusService1BiMapper;
import com.ruoyi.system.domain.SysCusService1Bi;
import com.ruoyi.system.service.ISysCusService1BiService;

/**
 * SysCusService1BiService业务层处理
 * 
 * @author SYF
 * @date 2025-06-04
 */
@Service
public class SysCusService1BiServiceImpl implements ISysCusService1BiService 
{
    @Autowired
    private SysCusService1BiMapper sysCusService1BiMapper;

    /**
     * 查询SysCusService1Bi
     * 
     * @param qd SysCusService1Bi主键
     * @return SysCusService1Bi
     */
    @Override
    @DataSource(DataSourceType.SLAVEDW)
    public SysCusService1Bi selectSysCusService1BiByQd(String qd)
    {
        return sysCusService1BiMapper.selectSysCusService1BiByQd(qd);
    }

    /**
     * 查询SysCusService1Bi列表
     * 
     * @param sysCusService1Bi SysCusService1Bi
     * @return SysCusService1Bi
     */
    @Override
    @DataSource(DataSourceType.SLAVEDW)
    public List<SysCusService1Bi> selectSysCusService1BiList(SysCusService1Bi sysCusService1Bi)
    {
        return sysCusService1BiMapper.selectSysCusService1BiList(sysCusService1Bi);
    }

    /**
     * 新增SysCusService1Bi
     * 
     * @param sysCusService1Bi SysCusService1Bi
     * @return 结果
     */
    @Override
    @DataSource(DataSourceType.SLAVEDW)
    public int insertSysCusService1Bi(SysCusService1Bi sysCusService1Bi)
    {
        return sysCusService1BiMapper.insertSysCusService1Bi(sysCusService1Bi);
    }

    /**
     * 修改SysCusService1Bi
     * 
     * @param sysCusService1Bi SysCusService1Bi
     * @return 结果
     */
    @Override
    @DataSource(DataSourceType.SLAVEDW)
    public int updateSysCusService1Bi(SysCusService1Bi sysCusService1Bi)
    {
        return sysCusService1BiMapper.updateSysCusService1Bi(sysCusService1Bi);
    }

    /**
     * 批量删除SysCusService1Bi
     * 
     * @param qds 需要删除的SysCusService1Bi主键
     * @return 结果
     */
    @Override
    @DataSource(DataSourceType.SLAVEDW)
    public int deleteSysCusService1BiByQds(String[] qds)
    {
        return sysCusService1BiMapper.deleteSysCusService1BiByQds(qds);
    }

    /**
     * 删除SysCusService1Bi信息
     * 
     * @param qd SysCusService1Bi主键
     * @return 结果
     */
    @Override
    @DataSource(DataSourceType.SLAVEDW)
    public int deleteSysCusService1BiByQd(String qd)
    {
        return sysCusService1BiMapper.deleteSysCusService1BiByQd(qd);
    }

    @Override
    @DataSource(DataSourceType.SLAVEDW)
    public int deleteCusService1ByOrderId(String orderId) {
        return sysCusService1BiMapper.deleteCusService1ByOrderId(orderId);
    }

    @Override
    @DataSource(DataSourceType.SLAVEDW)
    public List<Map<String,Object>> selectAreaSummary(){
        return sysCusService1BiMapper.selectAreaSummary();
    }

    @Override
    @DataSource(DataSourceType.SLAVEDW)
    public List<Map<String,Object>> selectSummaryInfo(String sql){
        return sysCusService1BiMapper.selectSummaryInfo(sql);
    }

    @Override
    @DataSource(DataSourceType.SLAVEDW)
    public List<Map<String,Object>> selectShzsSummary(){
        return sysCusService1BiMapper.selectShzsSummary();
    }

    @Override
    @DataSource(DataSourceType.SLAVEDW)
    public List<Map<String,Object>> selectShwtSummary(){
        return sysCusService1BiMapper.selectShwtSummary();
    }

    @Override
    @DataSource(DataSourceType.SLAVEDW)
    public List<Map<String,Object>> selectShcpSummary(){
        return sysCusService1BiMapper.selectShcpSummary();
    }

    @Override
    @DataSource(DataSourceType.SLAVEDW)
    public List<Map<String,Object>> selectShlxSummary(){
        return sysCusService1BiMapper.selectShlxSummary();
    }

    @Override
    @DataSource(DataSourceType.SLAVEDW)
    public List<Map<String,Object>> selectCusServiceList(){
        return sysCusService1BiMapper.selectCusServiceList();
    }
}
